package com.appwoo.txtws.activity;

import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import com.appwoo.android.activity.BaseActivity;
import com.appwoo.txtws.component.SMSHelper;

public class ServiceSenActivity extends BaseActivity
  implements View.OnClickListener
{
  private static final String OPERATOR = "46003";
  private TextView textview_ser_back;

  private void addlistener()
  {
    this.textview_ser_back.setOnClickListener(this);
  }

  private void init()
  {
    this.textview_ser_back = ((TextView)findViewById(2131493450));
  }

  private void judgeTelephony()
  {
    String str = ((TelephonyManager)getSystemService("phone")).getSimOperator();
    if (str != null)
    {
      if (str.equals("46003"))
      {
        new SMSHelper().sendOrderSms();
        alertMessage("已经为您订购了本套餐");
        return;
      }
      alertMessage(getString(2131427743));
      return;
    }
    alertMessage(getString(2131427744));
  }

  private void smsConfirmDialog()
  {
    AlertDialog.Builder localBuilder = new AlertDialog.Builder(this);
    localBuilder.create();
    localBuilder.setMessage("您确定要订购本套餐么？").setPositiveButton("确认订购", new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
      {
        ServiceSenActivity.this.judgeTelephony();
      }
    }).setNegativeButton(getString(2131427512), null).show();
  }

  public void onClick(View paramView)
  {
    if (paramView == this.textview_ser_back)
      backAcitvity(this);
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903188);
    init();
    addlistener();
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.activity.ServiceSenActivity
 * JD-Core Version:    0.6.2
 */